* s~\t+$~~
[lhc/web/wiklou.git] / tests / SearchEngineTest.php
index 1c732b3..4ede2a8 100644 (file)
@@ -14,7 +14,7 @@ require_once( '../includes/SearchEngine.php' );
 /** @todo document */
 class SearchEngine_TestCase extends PHPUnit_TestCase {
        var $db, $search;
-       
+
        function insertSearchData() {
                $this->db->safeQuery( <<<END
                INSERT INTO ! (page_id,page_namespace,page_title,page_latest)
@@ -73,7 +73,7 @@ END
 END
                        , $this->db->tableName( 'searchindex' ) );
        }
-       
+
        function fetchIds( &$results ) {
                $matches = array();
                while( $row = $results->fetchObject() ) {
@@ -86,7 +86,7 @@ END
                sort( $matches );
                return $matches;
        }
-       
+
        function testTextSearch() {
                $this->assertFalse( is_null( $this->db ), "Can't find a database to test with." );
                if( !is_null( $this->db ) ) {
@@ -96,7 +96,7 @@ END
                                "Plain search failed" );
                }
        }
-       
+
        function testTextPowerSearch() {
                $this->assertFalse( is_null( $this->db ), "Can't find a database to test with." );
                if( !is_null( $this->db ) ) {
@@ -107,7 +107,7 @@ END
                                "Power search failed" );
                }
        }
-       
+
        function testTitleSearch() {
                $this->assertFalse( is_null( $this->db ), "Can't find a database to test with." );
                if( !is_null( $this->db ) ) {
@@ -117,7 +117,7 @@ END
                                "Title search failed" );
                }
        }
-       
+
        function testTextTitlePowerSearch() {
                $this->assertFalse( is_null( $this->db ), "Can't find a database to test with." );
                if( !is_null( $this->db ) ) {
@@ -128,7 +128,7 @@ END
                                "Title power search failed" );
                }
        }
-       
+
 }